function foo(){
    var a = 3;
    if(true){
        var b = 4;
    }
    console.log(b);
}
foo();
